<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改商户费率绑定')" />
    <th:block th:include="include :: datetimepicker-css" />
    </head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-merchantRate-edit" th:object="${merchantRate}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">
                <label class="col-sm-3 control-label">商户编号：</label>
                <div class="col-sm-8">
                    <input name="merno" th:field="*{merno}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">结算类型 0-D0、1-T1：</label>
                <div class="col-sm-8">
                    <select name="settleType" class="form-control m-b">
                        <option value="">所有</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">卡类型 1：借记卡、2：贷记卡、3：预付费卡：</label>
                <div class="col-sm-8">
                    <select name="cardType" class="form-control m-b">
                        <option value="">所有</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">类别 0-标准类、3-会员：</label>
                <div class="col-sm-8">
                    <input name="merCategory" th:field="*{merCategory}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">交易类型，H301  微信 H302 支付宝H303 银联二维码 H007,线下收单：</label>
                <div class="col-sm-8">
                    <select name="msgtype" class="form-control m-b">
                        <option value="">所有</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">费率代号：</label>
                <div class="col-sm-8">
                    <input name="rateCode" th:field="*{rateCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">附加费率代号：</label>
                <div class="col-sm-8">
                    <input name="rateAffix" th:field="*{rateAffix}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">添加人：</label>
                <div class="col-sm-8">
                    <input name="addMan" th:field="*{addMan}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">添加日期：</label>
                <div class="col-sm-8">
                    <input name="addDate" th:field="*{addDate}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">添加时间：</label>
                <div class="col-sm-8">
                    <input name="addTime" th:field="*{addTime}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">0 传统银行卡收单 1 银联云闪付 2-微信 3-支付宝 4-银联二维码：</label>
                <div class="col-sm-8">
                    <select name="rateType" class="form-control m-b">
                        <option value="">所有</option>
                    </select>
                    <span class="help-block m-b-none"><i class="fa fa-info-circle"></i> 代码生成请选择字典属性</span>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">调价费率代号：</label>
                <div class="col-sm-8">
                    <input name="tjRateCode" th:field="*{tjRateCode}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">附加费是否调价 0-未调、1-已调：</label>
                <div class="col-sm-8">
                    <input name="tjFj" th:field="*{tjFj}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">垫资日息代号：</label>
                <div class="col-sm-8">
                    <input name="rateDz" th:field="*{rateDz}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">封顶值：</label>
                <div class="col-sm-8">
                    <input name="armarkfd" th:field="*{armarkfd}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">交易金额起始：</label>
                <div class="col-sm-8">
                    <input name="beginMoney" th:field="*{beginMoney}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">交易金额结束：</label>
                <div class="col-sm-8">
                    <input name="endMoney" th:field="*{endMoney}" class="form-control" type="text">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-3 control-label">是否封顶 0费率 1封顶：</label>
                <div class="col-sm-8">
                    <input name="isFd" th:field="*{isFd}" class="form-control" type="text">
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "merchantInfo/merchantRate";
        $("#form-merchantRate-edit").validate({
            focusCleanup: true
        });

        $("input[name='date']").datetimepicker({
            format: "yyyy-mm-dd",
            minView: "month",
            autoclose: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-merchantRate-edit').serialize());
            }
        }
    </script>
</body>
</html>